<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="purchase.wf.ProcessHistoryInfo"%>

<% 
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>process_history_list</title>
</head>
<body>
<table align="center" border="1">
	<tr>
		<th colspan="4">Process History</th>
	</tr>
	<tr>
		<th>TaskName</th>
		<th>ActorId</th>
		<th>CreateTime</th>
		<th>EndTime</th>
	</tr>
	
	<% 
		TreeSet<ProcessHistoryInfo> processHistoryInfoList = (TreeSet<ProcessHistoryInfo>)request.getAttribute("processHistoryInfoList");
	
		for (Iterator<ProcessHistoryInfo> ite = processHistoryInfoList.iterator(); ite.hasNext();) {
			
			ProcessHistoryInfo processHistoryInfo = ite.next();
			String name = processHistoryInfo.getTaskName()==null?"":processHistoryInfo.getTaskName();
			String actorId = processHistoryInfo.getActorId()==null?"":processHistoryInfo.getActorId();
			Object create = processHistoryInfo.getCreateTime()==null?"":processHistoryInfo.getCreateTime();
			Object end = processHistoryInfo.getEndTime()==null?"":processHistoryInfo.getEndTime();
			long taskId = processHistoryInfo.getTaskId();
	%>
	<tr>
		<td><%=name %></td>
		<td><%=actorId %></td>
		<td><%=create %></td>
		<td><%=end %></td>
	</tr>
	<% 
		}
	%>
	
</table>
</body>
</html>